import UserTable from './userTable'
import UserManNew from './userNew'

import { useState } from 'react'
const User_management = () => {
  //显示哪个组件，1是表格，2是新增
  const [state, setState] = useState(1)
  let com
  if (state == 1) {
    com = <UserTable setState={setState}></UserTable>
  }
  else {
    com = <UserManNew setState={setState}></UserManNew>
  }
  return <>
    {com}
  </>

};

export default User_management;

